package com.xmcc.param;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Setter
@Getter
public class BeanTest {

    @NotBlank //不为null  也不能为"" 通过字符串的trim()方法 判断length
    private String username;

    @NotNull
    private Integer age;

    @NotEmpty //不为null  size>0
    private List list;


}
